package EVM;


import Commons.Cell;

public class Plus1AdderGate extends SimpleLogicGate {
    public Plus1AdderGate(Cell input, Cell output, String name) {
        super(input, output, name);
    }

    public void execute(boolean open) {
        if (open) {
            output.set(input.get() + 1);
        } else {
            output.set(input.get());

        }
    }

}
